package cn.hanyx.coder.design.paradigm.dip;

import java.util.ArrayList;
import java.util.List;

public class JunitApplication {
    private static final List<TestCase> testCases = new ArrayList<>();

    public static void register(TestCase testCase) {
        testCases.add(testCase);
    }

    public static final void main(String[] args) {
        JunitApplication.register(new UserServiceTest());
        testCases.stream().forEach(t -> t.run());
    }
}